<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>银行资金往来</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/common.css') }}">
    <script src="{{ url_for('static', filename='js/fontawesome.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/jquery.min.js') }}"></script>

    <style>
        :root {
            --primary-color: #4a90e2;
            --primary-hover: #357abd;
            --menu-bg: #f8f9fa;
            --menu-hover: #e9ecef;
            --menu-width: 280px;
            --border-color: #dee2e6;
            --text-color: #343a40;
            --menu-text: #495057;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #f1f3f5;
            display: flex;
            min-height: 100vh;
        }

        /* 左侧菜单样式 */
        .menu {
            width: var(--menu-width);
            height: 100vh;
            background-color: var(--menu-bg);
            color: var(--menu-text);
            position: fixed;
            left: 0;
            top: 0;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            border-right: 1px solid var(--border-color);
        }

        .menu-header {
            padding: 24px;
            background: white;
            border-bottom: 1px solid var(--border-color);
        }

        .menu-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--primary-color);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .menu-title::before {
            content: '❖';
            margin-right: 8px;
            color: var(--primary-color);
            font-size: 20px;
            line-height: 1;
        }

        .menu-list {
            list-style: none;
            flex: 1;
            padding: 20px 16px;
        }

        /* 菜单项样式 */
        .menu-item {
            margin: 4px 0;
            border-radius: 6px;
            transition: all 0.3s;
            position: relative;
        }

        .menu-item:hover {
            background-color: var(--menu-hover);
        }

        .menu-item.active {
            background-color: var(--menu-hover);
        }

        .menu-item a {
            color: var(--menu-text);
            text-decoration: none;
            display: block;
            padding: 12px 16px;
            font-size: 14px;
            position: relative;
            transition: all 0.3s;
            border-radius: 6px;
        }

        .menu-item:hover a {
            color: var(--primary-color);
        }

        .menu-item.active a {
            color: var(--primary-color);
            font-weight: 500;
        }

        /* 主内容区域样式 */
        .main-content {
            margin-left: var(--menu-width);
            flex: 1;
            padding: 24px;
            background-color: #f1f3f5;
            min-height: 100vh;
        }

        /* 美化滚动条 */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.02);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.15);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.2);
        }
    </style>
    {% block head %}{% endblock %}
</head>
<body>
    <!-- 左侧菜单 -->
    <nav class="menu">
        <div class="menu-header">
            <h1 class="menu-title">银行资金往来</h1>
        </div>
        <ul class="menu-list">
            <!-- <li class="menu-item {% if active_page == 'flight_expense' %}active{% endif %}">
                <a href="/flight-expense">员工超标准报销飞机费用模型</a>
            </li> -->
            <li class="menu-item {% if active_page == 'personnel_network' %}active{% endif %}">
                <a href="/personnel-network">人员关系网络分析</a>
            </li>
            <li class="menu-item {% if active_page == 'information_assets' %}active{% endif %}">
                <a href="/information-assets">信息资产分析</a>
            </li>
            <li class="menu-item {% if active_page == 'bank_flow_bak' %}active{% endif %}">
                <a href="/bank-flow-bak">银行流水情况分析</a>
            </li>
            <li class="menu-item {% if active_page == 'bank_flow' %}active{% endif %}">
                <a href="/bank-flow">银行流水往来</a>
            </li>
            <li class="menu-item {% if active_page == 'asset_situation' %}active{% endif %}">
                <a href="/asset-situation">资产情况分析</a>
            </li>
            <li class="menu-item {% if active_page == 'Asset_BI_Chart' %}active{% endif %}">
                <a href="/Asset-BI-Chart">资产关系网BI图</a>
            </li>
            <li class="menu-item {% if active_page == 'specific_personnel_exchange' %}active{% endif %}">
                <a href="/specific-personnel-exchange">特定关系人员往来分析模型</a>
            </li>
            <li class="menu-item {% if active_page == 'three_bussiness' %}active{% endif %}">
                <a href="/three-bussiness">"三商"往来分析模型</a>
            </li>
            <!-- <li class="menu-item {% if active_page == 'abnormal_warning' %}active{% endif %}">
                <a href="/abnormal-warning">异常信息预警</a>
            </li> -->
        </ul>
    </nav>

    <!-- 主内容区域 -->
    <main class="main-content">
        {% block content %}{% endblock %}
    </main>

    {% block scripts %}{% endblock %}
</body>
</html> 